// store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'  // 这里需要指向正确的路径
import typeNav from './modules/typeNav'
import floor from './modules/floor'
import homeSearch from './modules/homeSearch'
import detailGoodinfo from './modules/detailGoodinfo'
import shopCart from './modules/shopCart'
import userList from './modules/UserList'
import trade from './modules/trade'
import center from './modules/center'
//引入插件一次
Vue.use(Vuex)
//对外暴露store类的一个实例
export default new Vuex.Store({
  //实现vuex仓库模块化存储开发数据
  modules: {
    home,
    typeNav,
    floor,
    homeSearch,
    detailGoodinfo,
    shopCart,
    userList,
    trade,
    //订单中心
    center
  }
})
